Skip to content

Conversation

@orangetin
Copy link
Member

Potential fix for https://github.com/togethercomputer/together-python/security/code-scanning/5

To fix the issue, add a permissions block at the root of the workflow to explicitly define the minimal permissions required. Based on the workflow's functionality, it primarily interacts with repository contents and publishes to PyPI. Therefore, the contents: read permission is sufficient for most steps, while the packages: write permission is required for the publishing step.

The permissions block should be added at the root level to apply to all jobs in the workflow. If any job requires additional permissions, they can be specified within that job's permissions block.


Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…n permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@orangetin orangetin closed this Apr 30, 2025
@orangetin orangetin deleted the alert-autofix-5 branch April 30, 2025 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants